// app/service/topics.js
const Service = require('egg').Service;

class LoginService extends Service {
  constructor(ctx) {
    super(ctx);
    this.state = '';
  }

  async todo(params) {
    const user_name = params?.user_name;
    const result = await this.ctx.model.User.findAll({
      where: {
        user_name,
      },
      raw: true,
    });
    return result;
  }

}

module.exports = LoginService;
